﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.WebsiteInfos.Dto
{
    public class EasyPictureCollectionDto
    {
        public List<EasyPictureDto> Items { get; set; }

        public EasyPictureCollectionDto()
        {
            Items = new List<EasyPictureDto>();
        }
    }

    public class EasyPictureDto
    {
        public string Picture { get; set; }
        public string Description { get; set; }
        public string Link { get; set; }

        public EasyPictureDto()
        {
        }

        public EasyPictureDto(EasyPicture easyContent)
        {
            Picture = easyContent.Picture;
            Description = easyContent.Description;
            Link = easyContent.Link;
        }

        public void MapTo(EasyPicture easyContent)
        {
            easyContent.Picture = Picture;
            easyContent.Description = Description;
            easyContent.Link = Link;
        }
    }
}
